<extend name="Public/Analysis/Common"/>

<block name="bjui-pageContent">
    <div class="bjui-pageContent tableContent">
        <table class="table table-bordered table-hover table-striped table-top">
            <thead>
            <tr data-idname="list[#index#][order_id]">
                <!-- 订单号 网店单号 订单状态 零售金额 售后金额 毛利  -->
                <th data-order-field="order_no" align="center">订单号</th>
                <th data-order-field="order_sn" align="center">B2C网站订单号</th>
                <th data-order-field="user_name" align="center">顾客姓名</th>
                <th align="center">订单状态</th>
                <th data-order-field="create_time" align="center">生成时间</th>
                <th  align="center">操作</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($list as $arr):?>
            <tr data-id="{$arr.order_id}">
                <!-- 收货人 -->
                <td align="center"><a  data-toggle="navtab" data-options="{id:'Order{$arr['order_id']}', url:'{:U('order/detailsOrder?orderId='.$arr['order_id'].'&isAfterSale=1'.'&navTabId=Order'.$arr['order_id'])}', title:'{$arr.order_sn}-订单详细'}">{$arr.order_no}</a></td>
                <!-- 手机 -->
                <td align="center">{$arr.order_sn}</td>
                <!-- 电话 -->
                <td align="center">{$arr.user_name}<br/>
                    {$arr.username}</td>
                <!-- 地址 -->
                <td align="center">{$arr.order_status}</td>
                <!-- 邮编 -->
                <td align="center">{:date('Y-m-d H:i:s', $arr['create_time'])}</td>
                <td align="center"><a href="{:U('order/cancelOrder?orderId='.$arr['order_id'])}" class="btn btn-green" data-toggle="dialog" data-width="450" data-height="300" data-id="dialog-normal" data-mask="true" data-title="取消订单">取消</a></td>
            </tr>
            <?php endforeach;?>
            </tbody>
        </table>
    </div>
</block>
